#ifndef PASSWORDINPUT_H
#define PASSWORDINPUT_H

#include <QWidget>
#include <QHash>
#include "../remoteservice/baseresp.h"

namespace Ui {
class PasswordInput;
}

class KeyBoard;
class QPropertyAnimation;

class PasswordInput : public QWidget
{
    Q_OBJECT
    
public:
    explicit PasswordInput(QWidget *parent = 0);
    ~PasswordInput();

    void setConferenceParam(QString num, QString name);

protected:
    bool eventFilter(QObject *o, QEvent *e);
    void initFocusOrder();

private slots:
    void on_pushButton_released();
    void showKeyBoard(QObject *o,int type);
    void hideKeyBoard();
    void callResponse(BaseResp);

private:
    void call(QString num, QString pwd, QString name);

private:
    Ui::PasswordInput *ui;

    KeyBoard *m_keyboard;

    QPropertyAnimation *m_keyboardAnimation;

    QString m_num;QString m_name;
    QHash<QObject*, QList<QObject*> > m_ctrlOrder;
};

#endif // PASSWORDINPUT_H
